namespace CSharpPro._1020;

public class Student
{
namespace CSharpPro._1020;

public class Student
{
    public string name;
    public string id;
    public Student()
    {
        
    }

    public Student(string name, string id)
    {
        this.name = name;
        this.id = id;
    }

    ~Student()
    {
        Console.WriteLine("对象销毁");
    }

    public void Deconstruct(out string name, out string id)
    {
        name = this.name;
        id = this.id;
    }
}
}